/** Created by CUIJA on 05-19-2017.*/


module.exports = function ($stateProvider) {
  $stateProvider
    .state({
      name: 'default',
      url: '',
      template: require('../layouts/home/home.html')
    })
    .state({
      name: 'pay',
      url: '/pay',
      template: require('../layouts/pay/view/pay.html'),
      controller:'PayCtrl as vm'
    })
    .state({
      name: 'paycss',
      url: '/paycss',
      template: require('../layouts/pay/css/pay.css'),
    })
    .state({
      name: 'orderdetail',
      url: '/orderdetail/:oid',
      template: require('../layouts/orderdetail/view/orderdetail.html'),
      controller:'orderdetailCtrl as vm'
    })
    .state({
      name: 'orderlist',
      url: '/orderlist',
      template: require('../layouts/orderlist/view/orderlist.html'),
      controller:'orderlistCtrl as vm'
    })
    .state({
      name: 'addradmin',
      url: '/addradmin',
      template: require('../layouts/addradmin/view/addradmin.html'),
      controller:'addradminCtrl as vm'
    })
    .state({
      name: 'paytocart',
      url: '/paytocart',
      template: require('../layouts/cart/cart.html'),
      controller:'CartCtrl as vm'
    })
    .state({
      name: 'home',
      url: '/',
      template: require('../layouts/home/home.html'),
      
    })
    .state({
      name: 'about',
      url: '/about',
      template: require('../layouts/about/about.html')
    })
    .state({
      name: 'welcome',
      url: '/welcome',
      template: require('../layouts/welcome/welcome.html'),
      controller: 'WelcomeCtrl as vm'
    })
    .state({
      name: 'cart',
      url: '/cart',
      template: require('../layouts/cart/cart.html'),
      controller: 'CartCtrl as vm'
    })
    .state({
      name: 'food',
      url: '/food/:icnum',
      template: require('../layouts/food/food.html'),
      controller: 'foodCtrl as vm'
    });



};